import java.util.Scanner;

/**
 * @author vivi
 * @description
 * @date 2024/5/22
 */
public class demo1 {
    public static void main (String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(1 << (n - 1));
    }
}
